/* 
    Created on : Oct 31, 2014, 3:07:55 PM
    Author     : ANHTU
    Document   : Dialog
*/


.UI_Dialog{
    position:fixed ;//absolute
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 100%;
    height: 100%;
    font-size: 16px;
    @include translateZ(105px);
    z-index:99999;//99992
    font-family: 'helvetica',helvetica,'Roboto',Tahoma,Arial,sans-serif;
    color:#000;

    .UI_Dialog_layout,
    .UI_Dialog_content{
        position: absolute;
        background: rgba(0, 0, 0, 0.5);
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;

    }
    .UI_Dialog_layout{
        @include transition(.3s);
        opacity: 1;
        z-index: 1;
    }
    .UI_Dialog_content{
        z-index: 999999;
        background: none;
        margin: auto;
        width: 280px;
        height: 158px;

    }
    .modal-dialog {
        position: relative;
        width:100%;
        height:100%;
    }
    .modal-content {
        position: relative;
        background:rgba(255,255,255,.95);
        -webkit-background-clip: padding-box;
        background-clip: padding-box;
        @include border-radius(6px);
        outline: 0;
        overflow: hidden;
    }

    .modal-header {
        min-height: 16.43px;
        padding: 15px 15px 0px 15px;
        text-align: center;
    }
    .modal-title {
        margin: 0;
        line-height: 1.42857143;
    }
    .modal-body {
        position: relative;
        padding: 15px;
        font-size: 14px;
        text-align: center;
        textarea{
            border:1px solid  rgba(201, 201, 201, 0.95);
            @include border-radius(1px);
        }
        a{
            color:#293088;
        }
    }
    .modal-footer {
        padding: 0px;
        text-align: right;
        border-top: 1px solid rgba(201,201,201,.95);

        button{
            display: block;
            padding: 12px;
            color: #0072FF;
            text-align: center;
            background: none;
            border: none;
            font-size: 16px;
            width: 100%;
        }
        button.bold{
            font-weight: bold;
        }
        button.hover{
            background:rgba(201,201,201,.3);
        }
    }
    .modal-footer:after{
        @include clearfix();
    }
    .Button_1{
        button{
            width: 100%;
        }
    }
    .Button_2{
        button{
            float: left;
            width: 50%;
        }
        button:first-child{
            border-right: 1px solid rgba(201,201,201,.95);
        }
    }
    .Button_3{
        button{
            border-right: 1px solid rgba(201,201,201,.95);
            float: left;
            width: 33.333%;
        }
        button:last-child{
            border-right:0px;
        }
    }

    .modal-scrollbar-measure {
        position: absolute;
        top: -9999px;
        width: 50px;
        height: 50px;
        overflow: scroll;
    }
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0,0,0,0);
        border: 0;
    }
}

.UI_Dialog_android{
    .UI_Dialog_content{
        width: 90%!important;
    }
    .modal-content{
        @include border-radius(0px);
    }
    .modal-header{
        padding-top:10px;
        padding-bottom: 10px;
        color: #1AADE3;
        border-bottom: 2px solid #1AADE3;
        font-weight: normal;
        h4{
            font-weight: normal;
            font-size: 17px;
        }
    }
    .modal-footer button{
        color: #222;
    }
}

.UI_Dialog_other{

    .Dialog_content{
        width: 400px;
        @include border-radius(5px);
    }
    .modal-header{
        width: 100%;
        height: 46px;
        line-height: 46px;
        padding:0px;
        @include bg_gradient2(#fff37c,#ffc61a);
        text-align: center;
        text-transform: uppercase;
        overflow: hidden;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
        box-shadow: 0px -1px 1px rgba(210,158,0,.5);
        h4{
            display: inline;
        }
    }
    .modal-content{
        padding: 2px;
        background: #EEEEEE;
        textarea{
            border: 1px solid #CACACA;
            border-radius: 4px
        }
    }
    .modal-footer{
        padding: 5px 0px;
        text-align:center;
        button{
            padding: 7px 30px;
            background: #fff;
            border: 1px solid #CBCACB;
            border-radius: 4px;
            width:auto;
            color:#333;
            display: inline-block;
            float: none;
            @include transition(.4s);
        }
        button:hover{
            background:#293088;
            color:#fff;
            border:1px solid #293088;
        }

    }
    .modal-footer.Button_2{
        button{
            margin-right: 5px;
        }
    }
}

@media (max-width:414px){
    .UI_Dialog_android,.UI_Dialog_ios{
        .UI_Dialog_content{
            width: 90%!important;
        }
    }
}